from django.http import HttpResponse, HttpRequest
from cudoc.space.models import Space

def index(request):
    return HttpResponse("Hello, world. You're at the space index.")

def space(space_id):
    space = Space.objects.get(id=space_id)
    HttpResponse.set_cookie('active_space_id', space_id)

